package com.iflytek.document;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "permission_info")
public class PermissionDocument {
    @Id
    private Long id;

    @Field(name = "name", type = FieldType.Text)
    @ApiModelProperty(value = "名称")
    private String name;

    @Field(name = "description", type = FieldType.Text)
    @ApiModelProperty(value = "描述")
    private String description;

    @Field(name = "path", type = FieldType.Text)
    @ApiModelProperty(value = "菜单路径")
    private String path;

    @Field(name = "icon", type = FieldType.Text)
    @ApiModelProperty(value = "图标")
    private String icon;

}
